
<include file="Public/ace_header" />
    <div class="row">
        <form class="form-horizontal" role="form" method="post"  style="padding-left: 10px;padding-right: 10px;">
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="user_id"> 购买用户 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="user_id" id="user_id" class="width-100" >
                            <php> $user = D(User)->select(); </php>
                            <volist name="user" id="vo">
                            <option value="{$vo['id']}" <if condition ="$model['user_id'] eq $vo['id']"> selected </if>>{$vo['name']}</option>
                            </volist>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="guider_user_id"> 导游 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="guider_user_id" id="guider_user_id" class="width-100" >
                            <php> $user = D(User)->select(); </php>
                            <volist name="user" id="vo">
                            <option value="{$vo['id']}" <if condition ="$model['guider_user_id'] eq $vo['id']"> selected </if>>{$vo['name']}</option>
                            </volist>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="name"> 订单名称 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="订单名称" id="name" name="name"  value="{$model['name']|default=''}" validate-required="required:请填写订单名称" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="start_time"> 开始日期 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="开始日期" id="start_time" name="start_time"  value="{$model['start_time']|default=''|date='Y-m-d',###}" validate-required="required:请填写开始日期" onClick="WdatePicker()" readonly=""/>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="end_time"> 结束日期 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="结束日期" id="end_time" name="end_time"  value="{$model['end_time']|default=''|date='Y-m-d',###}" validate-required="required:请填写结束日期" onClick="WdatePicker()" readonly=""/>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="price"> 价格 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="价格" id="price" name="price"  value="{$model['price']|default=''}" validate-required="required:请填写价格" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="amount"> 总价 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="总价" id="amount" name="amount"  value="{$model['amount']|default=''}" validate-required="required:请填写总价" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="content"> 行程详情 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <textarea class="col-xs-12 col-sm-6 width-100" style="padding: 5px 4px;" rows="5" id="content" name="content" placeholder="行程详情" validate-required="required:请填写行程详情" >{$model["content"]|default=""}</textarea>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <script type="text/javascript">var editor = UE.getEditor("content");</script>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="user_name"> 用户姓名 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="用户姓名" id="user_name" name="user_name"  value="{$model['user_name']|default=''}" validate-required="required:请填写用户姓名" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="user_phone"> 用户电话 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="用户电话" id="user_phone" name="user_phone"  value="{$model['user_phone']|default=''}" validate-required="required:请填写用户电话" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="user_gender"> 用户性别 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="用户性别" id="user_gender" name="user_gender"  value="{$model['user_gender']|default=''}" validate-required="required:请填写用户性别" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="user_contract"> 用户补充合同 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <textarea class="col-xs-12 col-sm-6 width-100" style="padding: 5px 4px;" rows="5" id="user_contract" name="user_contract" placeholder="用户补充合同" validate-required="required:请填写用户补充合同" >{$model["user_contract"]|default=""}</textarea>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <script type="text/javascript">var editor = UE.getEditor("user_contract");</script>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="guider_contract"> 导游补充合同 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <textarea class="col-xs-12 col-sm-6 width-100" style="padding: 5px 4px;" rows="5" id="guider_contract" name="guider_contract" placeholder="导游补充合同" validate-required="required:请填写导游补充合同" >{$model["guider_contract"]|default=""}</textarea>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <script type="text/javascript">var editor = UE.getEditor("guider_contract");</script>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="clearfix form-actions">
                <div style="margin-left: 25%;">
                    <button class="btn btn-info btn-sm" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        提交
                    </button>
                    &nbsp; &nbsp; &nbsp;
                    <button class="btn btn-sm return" type="button">
                        <i class="icon-reply bigger-110"></i>
                        返回
                    </button>
                </div>
            </div>
        </form>
    </div>
<include file="Public/ace_footer" />